package seedswap

class Farmer {

   static constraints = {
		firstName(blank:false)
		lastName(blank:false)
		
		gender(inList:["M","F"])
		address()
		city()
		state()
		zipcode()
		email(email:true)
		
    }
	
	static hasMany=[registrations:Registration]
	String firstName
	String lastName
	
	String gender
	String address
	String city
	String state
	String zipcode
	String email
	
	String toString(){
		"${lastName}, ${firstName}, ${email}"
	}
	
	
}
